package cn.wangxl.group.rpc.discover;

import cn.wangxl.group.rpc.protocol.Protocol;
import lombok.Data;

/**
 * @Deacription RpcRequest
 * @Author 20112128
 * @Date 2020/9/18 9:50
 **/
@Data
public class ServiceInfo {

    private String name;

    private Protocol protocol;

    private String address;

    private String host;

    private Integer port;

    public ServiceInfo(String name, Protocol protocol, String address, String host, Integer port) {
        this.name = name;
        this.protocol = protocol;
        this.address = address;
        this.host = host;
        this.port = port;
    }

    public ServiceInfo() {
    }
}
